<?php
/**
 * Description of view
 * 
 * @author trangnguyen
 * @since Dec 3, 2013 - 2:57:46 PM
 */
/**
 * End of view
 */
?>
<?php $this->pageTitle = $post->title . ' - ' . Option::getItem('site_name'); ?>
<div class="news-view fl">
    <h2><?php echo $post->title ?></h2>
    <div class="time-up fl"> Đăng lúc: <?php echo date('H:i d/m/Y', $post->created_at); ?></div>
    <div class="share-button fr">
        <!-- AddToAny BEGIN -->
        <div class="a2a_kit a2a_default_style">
            <a class="a2a_button_facebook"></a>
            <a class="a2a_button_twitter"></a>
            <a class="a2a_button_google_plus"></a>
            <a class="a2a_button_email"></a>
            <a class="a2a_button_printfriendly"></a>
        </div>
        <script type="text/javascript" src="//static.addtoany.com/menu/page.js">var AddToAny_config = {"data_track_addressbar": false};</script>
        <!-- AddToAny END -->
    </div>
    <div class="clear"></div>
    <div class="desc-more">
        <?php echo $post->content; ?>

    </div>
</div>
<div class="list-other fl">
    <div class="name-title">
        Tin liên quan
    </div>
    <hr>
    <ul>
        <?php
        if ($relation):
            foreach ($relation as $rel):
                ?>
                <li>
                    <a href="<?php echo $rel->publicUrl; ?>" title="<?php echo $rel->publicUrl; ?>">
                        <?php echo $rel->title; ?>
                    </a>
                </li>
            <?php endforeach; ?>
        <?php endif; ?>
    </ul>
</div>
<div class="clear"></div>